//
//  RemindCell.m
//  ProjectforHDX
//
//  Created by Jaesun on 16/11/21.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import "RemindCell.h"

@implementation RemindCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 7, 200, 30)];
        [self.contentView addSubview:self.titleLabel];
        self.rightSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 70, 8, 0, 0)];
        self.rightSwitch.transform = CGAffineTransformMakeScale(44.0/51,26.0/31);
        
        if (self.rightSwitch.on) {
            self.rightSwitch.tintColor = [UIColor greenColor];

        }
        else {
            self.rightSwitch.tintColor = [UtilCheck hexStringToColor:@"EBEBEB" alpha:1];
        }
    
        [self.contentView addSubview:self.rightSwitch];
        
    }
    return self;
}


@end
